Skip to content

docs: document allowUserAgentAppInfo for Go, C#, Java, Ruby, and PHP SDKs - #6547

Open
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1785949662-appinfo-five-langs
Open

docs: document allowUserAgentAppInfo for Go, C#, Java, Ruby, and PHP SDKs#6547
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1785949662-appinfo-five-langs

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Overview

The appInfo feature lets whoever builds on top of a Fern-generated SDK attach their own application's product token to the User-Agent header, on top of what the SDK already reports about itself. A partner or platform that wraps the SDK can therefore identify its integration in outbound requests, so API providers can attribute traffic per integration without losing the SDK name, version, and platform telemetry the header already carries. It is opt-in per generator and off by default, so existing SDK output is unchanged.

Implements docs for: feat(go): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17305)
Implements docs for: feat(csharp): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17303)
Implements docs for: feat(java): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17301)
Implements docs for: feat(ruby): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17300)
Implements docs for: feat(php): add opt-in appInfo client option appended to User-Agent (fern-api/fern#17299)

Summary

Adds one <ParamField> per language, directly after the existing platform-headers option, to the generator configuration reference pages:

Page Config key Consumer surface
generators/go/configuration.mdx allowUserAgentAppInfo option.WithUserAgentAppInfo(name, version, comment)
generators/csharp/configuration.mdx allow-user-agent-app-info AppInfo record on ClientOptions
generators/java/configuration.mdx allowUserAgentAppInfo builder .appInfo(String name, String version, String comment)
generators/ruby/configuration.mdx allowUserAgentAppInfo client keyword app_info: { name:, version:, comment: }
generators/php/configuration.mdx allowUserAgentAppInfo client options key appInfo (array{name, version?, comment?})

Each entry follows the wording used for TypeScript and Python in #6498, which is still open and covers those two languages: the token format ({name}/{version} ({comment}), segments dropped when blank), a short client instantiation example, the resulting User-Agent including the structured platform value, and the interaction with an explicit User-Agent header and omit-fern-headers. Config keys use each page's own casing convention, and the Java entry also notes composition with runtime-version.

Anchor links use the lowercased ids the site actually renders (#includeplatformheaders, #omitfernheaders) — the camel-cased anchors used in #6498 do not resolve.

No SDK changelog entries, per the repo convention.

Validation

  • pre-commit run --files <changed files>: passed (Vale reports only pre-existing suggestions on untouched lines).
  • cd fern && npx fern-api@5.59.0 check --warnings: 0 errors; warnings are pre-existing (API path conflicts, FDR 403, contrast ratio).
  • Verified the rendered Go entry and its anchor links on the preview deployment.

Link to Devin session: https://app.devin.ai/sessions/7fef9a95e9494f4e8853f59d4cce70d1

…SDKs

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from devalog as a code owner August 5, 2026 17:09
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants